package com.nl.controller.web.global;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class GlobalConst {
 
    public static String FILE_STATION_PATH;
    public static String FILE_SEND_PATH;
    public static String[] PHONE_NUMBER;//省公司管理员手机号
    public static String PATH;          //短信明细的根目录路径
    public static String TEMPPATH;
    public static String SKEY;
    public static String REDIS_CONFIG; //redis配置内容
    
    
  //文件上传基站路径
    @Value("${sKey}")
    public void setSKEY(String sKey) {
        SKEY = sKey;
    }
    //文件上传基站路径
    @Value("${fileStationPath}")
    public void setFileStationPath(String fileStationPath) {
        FILE_STATION_PATH = fileStationPath;
    }

    //文件上传手工发送路径
    @Value("${fileSendPath}")
    public void setFileSendPath(String fileSendPath) {
        FILE_SEND_PATH = fileSendPath;
    }

    @Value("${phoneNumber}")
    public void setPHONE_NUMBER(String phoneNumber) {
        PHONE_NUMBER = phoneNumber.split(",");
    }

    @Value("${sendReport}")
    public void setPATH(String sendReport) {
        PATH = sendReport;
    }

    @Value("${tempPath}")
    public void setTEMPPATH(String tempPath) {
        TEMPPATH = tempPath;
    }
    
    @Value("${redis}")
    public void setRedis(String redisconfig) {
    	REDIS_CONFIG = redisconfig;
    }
}
